import request from '@/utils/request'
export function getInvoiceTypes(params) {
  return request({
    url: '/api/Case/InvoiceType/GetInvoiceTypes',
    method: 'get',
    params
  })
}

export function addInvoiceType(data) {
  return request({
    url: '/api/Case/InvoiceType/AddInvoiceType',
    method: 'post',
    data
  })
}

export function editInvoiceType(data) {
  return request({
    url: '/api/Case/InvoiceType/EditInvoiceType',
    method: 'post',
    data
  })
}

export function deleteInvoiceType(id) {
  return request({
    url: '/api/Case/InvoiceType/DeleteInvoiceType',
    method: 'get',
    params: {
      id
    }
  })
}